package agent

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type AgentLevelEnumLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

// 代理绝对层级枚举
func NewAgentLevelEnumLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AgentLevelEnumLogic {
	return &AgentLevelEnumLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *AgentLevelEnumLogic) AgentLevelEnum() (resp []types.AgentEnum, err error) {
	resp = []types.AgentEnum{
		{Key: 1, Value: "1级"},
		{Key: 2, Value: "2级"},
		{Key: 3, Value: "3级"},
		{Key: 4, Value: "4级"},
		{Key: 5, Value: "5级"},
		{Key: 6, Value: "6级"},
	}
	return
}
